package blog.dao.impl;

import org.springframework.stereotype.Repository;
import blog.dao.UserDao;
import blog.entity.User;
import blog.util.MyHibernateDaoSupport;

@Repository
public class UserDaoImpl extends MyHibernateDaoSupport implements UserDao {

	public boolean saveUser(User user) {
		try {
			this.getHibernateTemplate().save(user);
			return true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return false;
	}

}
